package cn.kgc.springcloud.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mosin
 * date 2022/1/3
 * @version 1.0
 */
@RestController
public class OrderController {
    @Value("${server.port}")
    private int port;
    Logger logger = LoggerFactory.getLogger(getClass());
    @GetMapping("/o1")
    public String test01(){
        logger.info("订单业务调用成功!");
        return "order Service invoke ok"+port;
    }
}
